Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize the call of some elementwise kernel to decrease the static library size. #57838

Merged
merged 6 commits into from
Oct 10, 2023

Conversation

Xreki
Copy link
Contributor

@Xreki Xreki commented Sep 28, 2023

PR types

Others

PR changes

OPs

Description

Pcard-70459

优化几个算子的生成的二进制的体积,具体包括:

  1. lerp_kernel,用到一些对单个Tensor的广播功能,改成调用phi::ExpandKernel
  2. viterbi_decode_kernel,用到多个float和int64_t类型的Add、Subtract、Multiply、Divide操作,改成直接调用AddKernelSubtractKernelMultiplyKernelDivideKernel
  3. compare_kernel在kpslegacy/kps中存在两份实现,改成相互调用的方式。

@paddle-bot
Copy link

paddle-bot bot commented Sep 28, 2023

你的PR提交成功,感谢你对开源项目的贡献!
请关注后续CI自动化测试结果,详情请参考Paddle-CI手册
Your PR has been submitted. Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

@paddle-ci-bot
Copy link

paddle-ci-bot bot commented Oct 6, 2023

Sorry to inform you that b604f8b's CIs have passed for more than 7 days. To prevent PR conflicts, you need to re-run all CIs manually.

@Xreki Xreki requested a review from AnnaTrainingG October 10, 2023 02:11
@AnnaTrainingG AnnaTrainingG merged commit b481a98 into PaddlePaddle:develop Oct 10, 2023
@Xreki Xreki deleted the op/compile branch October 10, 2023 02:26
Frida-a pushed a commit to Frida-a/Paddle that referenced this pull request Oct 14, 2023
jiahy0825 pushed a commit to jiahy0825/Paddle that referenced this pull request Oct 16, 2023
danleifeng pushed a commit to danleifeng/Paddle that referenced this pull request Nov 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants